/**
 * 基础路由
 * @type { *[] }
 */
import {AppSider, Menu} from '@/layouts'

export const constantRouterMap = [
  // {
  //   path: '/video',
  //   name: 'Video',
  //   component: Menu,
  //   props: { id: 'video' },
  //   redirect: { name: 'VideoBiliIndex' },
  //   children: [
  //     {
  //       path: '/video/bili/index',
  //       name: 'VideoBiliIndex',
  //       component: () => import('@/views/video/bili/Index')
  //     },
  //     {
  //       path: '/video/settings/index',
  //       name: 'VideoSettingsIndex',
  //       component: () => import('@/views/video/settings/Index')
  //     },
  //     {
  //       path: '/video/updater/index',
  //       name: 'VideoUpdaterIndex',
  //       component: () => import('@/views/video/updater/Index')
  //     },
  //     {
  //       path: '/video/feedback/index',
  //       name: 'VideoFeedbackIndex',
  //       component: () => import('@/views/video/feedback/Index')
  //     },
  //   ]
  // },
  {
    path: '/',
    component: AppSider,
    children: [
      {
        path: '/crawler',
        name: 'Crawler',
        component: Menu,
        props: { id: 'crawler' },
        redirect: { name: 'CrawlerUserIndex' },
        children: [
          {
            path: '/crawler/user/index',
            name: 'CrawlerUserIndex',
            component: () => import('@/views/crawler/user/Index')
          },
          {
            path: '/crawler/settings/index',
            name: 'CrawlerSettingsIndex',
            component: () => import('@/views/crawler/settings/Index')
          },

        ]
      },
      {
        path: '/other',
        name: 'Other',
        component: Menu,
        props: { id: 'other' },
        redirect: { name: 'OtherTestIndex' },
        children: [
          {
            path: '/other/test/index',
            name: 'OtherTestIndex',
            component: () => import('@/views/other/test/Index')
          },
        ]
      }
    ]
  }
]
